how to form equations from word problems in quadratic equations